home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Packmags
/
NewsFlash - Issue 10 (1990)(UGA - NewsFlash UK)(Disk 1 of 2)[a3].zip
/
NewsFlash - Issue 10 (1990)(UGA - NewsFlash UK)(Disk 1 of 2)[a3].adf
/
prog
/
rip.DOC
< prev
next >
Wrap
Text File
|
1996-12-24
|
2KB
|
58 lines
--------------------------------------------------------------------------
(R)eset (I)nterrupt (P)rogram ... created by Brian Postma
--------------------------------------------------------------------------
<A new source>
What does this thing do ?? Well, this is a program which installs a small
routine in the reset-procedure. After running the program nothing seems to
have happened. But wait until you reset !!
When you reset you'll get a blitter-scrolled-two-bitplane-font scrolltext,
and a double-bitplane-starfield (also blitter scrolled). You can press the
left-mouse button now to continue with the normal reset procedure and
leave the program in memory for a next reset. Also you can press fire on
a joystick or mouse in port #2 to remove the program.
<How does this work>
To put this program in the reset-procedure I used the cold-capture pointer
from the exec-library. You just put the starting-adress of your program in
the location of the cold-capture pointer and calculate a checksum (this
is neccesary otherwise the Amiga won't execute the program). We also but
this checksum in the execbase. After that I allocate some memory for the
program code and copy the program to this memoryblock. The program to use
should be completely PC-relative. You must do this because you don't know
where your program will be so you cannot use pre-defined adresses.
<Beware...>
This technique was also used by the first Amiga virus the 'SCA' virus.
This virus loaded itself from the bootblock and changed the coldcapture
pointer. What it did was after every reset, it wrote itself back to the
bootblock (when the disk was not write protected) and thus infecting your
disks.
<About Assembling>
After each assemble of this program you must reload the char-set. You can
do this by typing 'ri' and then when prompted for filename 'fdata216'.
For startadress you must enter 'font' and when prompted for endadress just
press 'return'. I know there are still some guys that prefer loading data-
blocks to absolute adresses so they only have to load them once, to these
guys I wanna say this...please remember that there are some guys that owe
a new agnus with 1Mb chipmem, and that on these Amigas most abs.adressed
programs won't work !!!!
--------------------------------------------------------------------------
Comments, Questions or Complaints to...
Brian Postma
Postbus 367
7570 AJ Oldenzaal
Holland
Tel:05410-14763